/*
 * @Author: mindaier 844199821@qq.com
 * @Date: 2023-12-18 09:37:06
 * @LastEditors: mindaier 844199821@qq.com
 * @LastEditTime: 2023-12-20 16:27:21
 * @FilePath: /meet-panel/test.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const tableConfig = [
  {
    prop: "column1",
    label: "06:00",
  },
  {
    prop: "column2",
    label: "07:00",
  },
  {
    prop: "column3",
    label: "08:00",
  },
  {
    prop: "column4",
    label: "09:00",
  },
  {
    prop: "column5",
    label: "10:00",
  },
  {
    prop: "column6",
    label: "11:00",
  },
  {
    prop: "column7",
    label: "12:00",
  },
  {
    prop: "column8",
    label: "13:00",
  },
  {
    prop: "column9",
    label: "14:00",
  },
  {
    prop: "column10",
    label: "15:00",
  },
  {
    prop: "column11",
    label: "16:00",
  },
  {
    prop: "column12",
    label: "17:00",
  },
  {
    prop: "column13",
    label: "18:00",
  },
  {
    prop: "column14",
    label: "19:00",
  },
  {
    prop: "column15",
    label: "20:00",
  },
  {
    prop: "column16",
    label: "21:00",
  },
  {
    prop: "column17",
    label: "22:00",
  },
  {
    prop: "column18",
    label: "23:00",
  },
];

const tableConfig1 = [
  {
    prop: "column1",
    label: "星期一",
  },
  {
    prop: "column2",
    label: "星期二",
  },
  {
    prop: "column3",
    label: "星期三",
  },
  {
    prop: "column4",
    label: "星期四",
  },
  {
    prop: "column5",
    label: "星期五",
  },
  {
    prop: "column6",
    label: "星期六",
  },
  {
    prop: "column7",
    label: "星期天",
  },
];

const headerColumns = [
];

function getDaysInMonth(month, year) {  
  return new Date(year, month, 0).getDate();  
}

function getHeaderColumns(year, month) {
  const days = getDaysInMonth(month, year);
  const columns = [];
  for (let i = 1; i <= days; i++) {
    columns.push({
      prop: `date${i}`,
      label: `${i}`,
    });
  }
  return columns;
}

function throttle(func, delay) {  
  let lastCall = 0;  
  return function(...args) {  
    const now = new Date().getTime();  
    if (now - lastCall < delay) {  
      return;  
    }  
    lastCall = now;  
    return func.apply(this, args);  
  };  
}
// var tableConfig2 = [];
